﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndyMosaic.Org.Site.ViewData.Home.IndexData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="headContent" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript" src="Scripts/easySlider1.5.js" ></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $("#slider").easySlider({
                    auto: true,
                    continuous: true
                });
            });  
      </script> 
      <script type="text/javascript" defer="defer" src="http://labs.bible.org/api/NETBibleTagger/v2/netbibletagger.js">org.bible.NETBibleTagger.voidOnMouseOut = true;</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% if (Model.LiveStreamOn || (DateTime.Now.DayOfWeek == DayOfWeek.Sunday && (DateTime.Now > new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 9, 0, 0) && DateTime.Now < new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 12, 0, 0))))
       {%>
       <iframe src="http://cdn.livestream.com/embed/indymosaic?layout=3&autoPlay=true&width=750&height=410" width="750" height="410" style="border:0;outline:0" frameborder=0 scrolling=no></iframe>
       <%}
       else
       {%>
    
        <asp:Image imageurl="~/Content/Images/MosaicFrontM.jpg" style="max-width: 750px" runat="server" />
    <% } %>
<div style="position:relative;">
    <% if (Model.NewsItems.Count > 0)
       {%>
    <div id="slider"> 
        <ul>
        <% foreach (var newsItem in Model.NewsItems)
           {%>
            <li><%= newsItem.Body%></li> 
        <% } %>
        </ul> 
    </div>
    <% } %>
</div>​

</asp:Content>
